package net.yb.dao;

import net.yb.entity.User;

import java.util.List;

/**
 * 用户DAO层的接口
 */
public interface UserDao {

    public boolean insert(User user);

    User selectByName(String name);

    User selectByPhone(String phone);

    List<User> selectAll();

    User selectById(int id);

    void updateById(User user);

    void deleteById(int id);

    List<User> selectCondition(String name, String address);
}
